package cn.platform.service.impl;

import cn.platform.entity.Student;
import cn.platform.mapper.StudentMapper;
import cn.platform.mapper.StudentMapper1;
import cn.platform.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class StudentServiceImpl implements StudentService {

    @Autowired
    private StudentMapper1 studentMapper1;

    @Override
    public List<Student> listAllActiveStudents() {
        return studentMapper1.listAllActiveStudents();
    }

    @Override
    public List<Student> searchByName(String name) {
        return studentMapper1.searchByName(name);
    }
}